<template>
  <div>
    <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px">
      <el-form-item label="年度">
        <el-date-picker
          v-model="queryParams.year"
          type="year"
          placeholder="选择年"
        >
        </el-date-picker>
      </el-form-item>
      <el-form-item>
        <el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
        <el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
      </el-form-item>
    </el-form>

    <Table
      ref="tableref"
      :tableHeader="tableHeader"
      :page="{show:false}"
      :operate="{show:false}"
      :table="{height:'calc(100vh - 210px)'}"
    >
    </Table>


    <el-dialog :title="title" :visible.sync="dialogVisible" :close-on-click-modal="false">
      <Complaint ref="Complaint"/>
    </el-dialog>
  </div>
</template>

<script>
import Complaint from './Complaint'
import Table from '@/components/Table'

export default {
  name: 'ConfirmOrderList',
  components: { Complaint, Table },
  data() {
    return {
      dialogVisible: false,
      title: '投诉',
      tableHeader: [
        { label: '年度', prop: '', fixed: 'left', width: '' },
        { label: '月份', prop: '', fixed: 'left', width: '' },
        { label: '转结金额', prop: '', fixed: 'left', width: '' },
        { label: '本期收票金额', prop: '', width: '' },
        { label: '本期付款金额', prop: '', width: '' },
        { label: '未开票金额', prop: '', width: '' },
        { label: '当前应付金额', prop: '', width: '' }
      ],
      showSearch: true,
      // 查询参数
      queryParams: {
        pageNum: 1,
        pageSize: 10
      },
      dateRange: []
    }
  },
  created() {

  },
  methods: {
    /**
     * 获取列表
     **/
    getList() {

    },
    /**
     * TODO 提交
     **/
    handleSubmit(row) {

    },
    /**
     * TODO 删除
     **/
    handleDel(row) {

    },
    /**
     * TODO 批量删除
     **/
    handleDels() {

    },
    /**
     * TODO 批量提交
     **/
    handleSubmits() {

    },

    /**
     * TODO 搜索按钮操作
     * */
    handleQuery() {
      this.queryParams.pageNum = 1
    },
    /**
     * TODO 重置按钮操作
     * */
    resetQuery() {
      this.dateRange = []
      this.queryParams.pageNum = 1
    }

  }
}
</script>

